import request from "@/utils/request";

// 获取专题精选列表,分页
export function getThematicSelectionList(data) {
  return request({
    url: "/ThematicSelection/list",
    method: "get",
    params: data,
  });
}

// 获取详细数据
export function getThematicSelectionById(data) {
  return request({
    url: "/ThematicSelection/ " + data,
    method: "get",
  });
}

// 添加专题精选数据
export function addThematicSelection(data) {
  return request({
    url: "/ThematicSelection",
    method: "post",
    data: data,
  });
}

// 修改专题精选数据
export function updateThematicSelection(data) {
  return request({
    url: "/ThematicSelection/update",
    method: "put",
    data: data,
  });
}

// 删除专题精选数据 (单个删除)
export function deleteThematicSelection(data) {
  return request({
    url: "/ThematicSelection/" + data,
    method: "delete",
  });
}

// 批量删除专题精选数据
export function deleteThematicSelectionBatch(data) {
  return request({
    url: "/ThematicSelection/batch",
    method: "delete",
    data: data,
  });
}

// 获取素材类型
export function getMaterialTypeList() {
  return request({
    url: "/ThematicSelection/type",
    method: "get",
  });
}
